<ion-header>

  <ion-navbar color="dark">
    <ion-title class="center w80">发布动态</ion-title>
  </ion-navbar>
</ion-header>


<ion-content padding="">
  <ion-list>
    <ion-item>
      <ion-textarea [(ngModel)]="sportDynamicContent" placeholder="说点什么吧" type="text" rows="5"></ion-textarea>
    </ion-item>
    <div style="width: 80px;height: 80px;border: 1px silver dashed;text-align: center">
      <ion-icon [hidden]="lastImage !== null" name="camera" style="font-size: 3rem;margin-top: 20px"
                (click)="presentActionSheet()"></ion-icon>
      <img src="{{pathForImage(lastImage)}}" style="width:80px;height:80px;" [hidden]="lastImage === null"
           (click)="presentActionSheet()">
    </div>

    <!--<h3 [hidden]="lastImage !== null">请从图片库中选择一个图片。</h3>-->
  </ion-list>
</ion-content>
<ion-footer>
  <ion-toolbar color="primary" (click)="pubSportDynamic()">

    <ion-buttons text-center="">
      <button ion-button>发布</button>
    </ion-buttons>
  </ion-toolbar>

</ion-footer>
